COM AT^SCKH test - Get / Set CarKit / Headset settings
COM V1.0	23.02.2005	T. Kleinmann	Started
COM V1.1	24.02.2005	T. Kleinmann	added comment about responsibility
COM V1.2	02.05.2005	T. Kleinmann	added state 3 and related responses

####################################################################################################
MESSAGE('These tests are considered to be the responsibility of accessory testers in ULM. \n\
The tests will be performed with real hardware.')
####################################################################################################


from attglobals import *

##########################################################################################

COM Test command
AT^SCKH=?
WAITFOR(1,'SCKH: (0-3)')

##########################################################################################

COM States:
COM 0	Auto Answer in Headset
COM 1	Auto Answer in Carkit
COM 2 	Loudspeaker in Carkit
COM 3   Auto off feature

##########################################################################################
COM Read command
AT^SCKH?
WAITFOR (1,'^SCKH: 0,','^SCKH: 1,','^SCKH: 2,','^SCKH: 3,')

##########################################################################################

COM write command 

for i in range (3):
	for j in range (2):
		AT^SCKH=i,j
		WAIT FOR OK
		WAIT 2000
		COM CHECK		
		AT^SCKH?
		WAITFOR(1,'^SCKH: ',i,',',j)

##########################################################################################

COM Erroneous Write command - Invalid parameter settings
AT^SCKH=3,0
WAIT FOR ERROR

AT^SCKH=0,3
WAIT FOR ERROR

COM Check
AT^SCKH?
WAITFOR (1,'1,2')

##########################################################################################

